package com.bocloud.cmp.driver.providers.os;

import com.bocloud.cmp.driver.providers.AuthDriver;
import com.bocloud.common.model.BsmResult;

public class OSAuthDriver extends OSDriver implements AuthDriver {

	/**
	 * 
	 */
	public OSAuthDriver() {
		super();
	}

	public OSAuthDriver(String endpoint, String username, String password, String tenant, String domain, String project,
			Version version) {
		super(endpoint, username, password, tenant, domain, project, version);
	}

	@Override
	public BsmResult auth() {
	    if(this.isAccessable()){
	        return new BsmResult(true, "" + this.isAccessable());
	    }
		return new BsmResult(this.isAccessable(), "认证信息失败");
	}

}
